package com.tyl.xtk.service.impl;

import com.tyl.xtk.beans.po.Permission;
import com.tyl.xtk.beans.po.Role;
import com.tyl.xtk.mapper.RoleMapper;
import com.tyl.xtk.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色管理服务实现类
 */
@Service
public class RoleServiceImpl extends DataServiceImpl<RoleMapper,Role> implements RoleService {

    @Override
    public List<Permission> selectPermissionListByRoleId(long roleId) {
        return baseMapper.selectByRoleId(roleId);
    }
}